/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package objects;

import java.io.Serializable;
import org.placelab.core.WiFiReading;

/**
 *
 * @author Nam
 */
public class AccessPoint implements Serializable
{
    //Attributes
    private String MacAddress;
    private String SSID; //name of the access point
    private double RSSI; //singal strength of the access point

    public AccessPoint()
    {
        
    }

    public AccessPoint(String m_MacAddress, String m_SSID, double m_RSSI)
    {
        this.MacAddress = m_MacAddress;
        this.SSID = m_SSID;
        this.RSSI = m_RSSI;
    }
    public AccessPoint(WiFiReading m_wifiReading)
    {
        this.MacAddress = m_wifiReading.getId();
        this.SSID = m_wifiReading.getSsid();
        this.RSSI = m_wifiReading.getRssi();
    }


    /**
     * @return the SSID
     */
    public String getSSID() {
        return SSID;
    }

    /**
     * @param SSID the SSID to set
     */
    public void setSSID(String SSID) {
        this.SSID = SSID;
    }

    /**
     * @return the RSSI
     */
    public double getRSSI() {
        return RSSI;
    }

    /**
     * @param RSSI the RSSI to set
     */
    public void setRSSI(double RSSI) {
        this.RSSI = RSSI;
    }

    /**
     * @return the MacAddress
     */
    public String getMacAddress() {
        return MacAddress;
    }

    /**
     * @param MacAddress the MacAddress to set
     */
    public void setMacAddress(String MacAddress) {
        this.MacAddress = MacAddress;
    }
}
